cmake_minimum_required( VERSION 3.14 )

project(yhwzq)

set(CMAKE_CXX_STANDARD 17)


## utf-8
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
# /bigobj
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/bigobj>")

#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:\"libcmt.lib\"")
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:\"msvcrt.lib\"")





add_definitions(-D_CRT_SECURE_NO_WARNINGS -DWIN32 -D_WINDOWS -DDEBUG -D_DEBUG -DJUCE_PROJUCER_VERSION=0x80004 -DJUCE_MODULE_AVAILABLE_juce_core=1 -DJUCE_MODULE_AVAILABLE_juce_data_structures=1 -DJUCE_MODULE_AVAILABLE_juce_events=1 -DJUCE_MODULE_AVAILABLE_juce_graphics=1 -DJUCE_MODULE_AVAILABLE_juce_gui_basics=1 -DJUCE_GLOBAL_MODULE_SETTINGS_INCLUDED=1 -DJUCE_STRICT_REFCOUNTEDPOINTER=1 -DJUCE_STANDALONE_APPLICATION=1 -DJUCER_VS2022_78A503E=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0 -DJucePlugin_Build_LV2=0)
add_definitions(-D_CONSOLE)
include_directories(JuceLibraryCode/modules)
include_directories(JuceLibraryCode/)

add_executable(yhwzq
        JuceLibraryCode/include_juce_core.cpp
        JuceLibraryCode/include_juce_core_CompilationTime.cpp
        JuceLibraryCode/include_juce_data_structures.cpp
        JuceLibraryCode/include_juce_events.cpp
        JuceLibraryCode/include_juce_graphics.cpp
        JuceLibraryCode/include_juce_graphics_Harfbuzz.cpp
        JuceLibraryCode/include_juce_graphics_Sheenbidi.c
        JuceLibraryCode/include_juce_gui_basics.cpp

        Source/Main.cpp
        Source/MainComponent.cpp
        Source/chess.cpp

)




